package CH3.Demo;

/**
 * @author: LiuBoTao
 * @date: 2022/9/20
 * @ApiNote
 */
public class PackageDemo {
   static int aFault=1;
   static void  pintFault(int a){
        System.out.println("CH3.Demo.PackageDemo a="+a);
    }
public
   static int aPublic=2;
public
   static int bPublic=222;
public
   static void  pintPublic(int a){
        System.out.println("CH3.Demo.PackageDemo a="+a);
    }
    protected static int aProtected=3;
    protected static void  pintProtected(int a){
        System.out.println("CH3.Demo.PackageDemo a="+a);
    }
    static private int aPrivate=4;
    private static void  pintPrivate(int a){
        System.out.println("CH3.Demo.PackageDemo a="+a);
    }
    public static void main(String[] args) {


        CH3.Demo.PackageDemo.pintFault(2);
        System.out.println("CH3.Demo.PackageDemo.aFault="+CH3.Demo.PackageDemo.aFault);

        CH3.Demo.PackageDemo.pintProtected(3);
        System.out.println("CH3.Demo.PackageDemo.aFault="+CH3.Demo.PackageDemo.aProtected);

        CH3.Demo.PackageDemo.pintPrivate(4);
        System.out.println("CH3.Demo.PackageDemo.aPrivate="+CH3.Demo.PackageDemo.aPrivate);

        PackageDemo.pintPublic(2);
        System.out.println("CH3.Demo.PackageDemo.aPublic="+ PackageDemo.aPublic);
        System.out.println("CH3.Demo.PackageDemo.bPublic="+ PackageDemo.bPublic);
    }
}
